@tailwind base;
@tailwind components;
@tailwind utilities;

/* 全局CSS变量和基础样式 */
:root {
  --primary-color: #E60027; /* 联通红 */
  --primary-hover: #c40022;
  --bg-color: #f5f7fa;
  --sidebar-width: 280px;
  --text-dark: #333;
  --text-light: #666;
  --border-color: #e0e0e0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-color);
}

/* 确保路由视图占满全屏 */
#app {
  height: 100vh;
  overflow: hidden;
}

.router-view-container {
  height: 100vh;
  overflow: hidden;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}
